{% extends "pretixcontrol/event/settings_base.html" %}
{% load i18n %}
{% load bootstrap3 %}
{% block inside %}
    <nav id="event-nav" class="header-nav">
        <div class="navigation">
            <div class="navigation-title">
                <h1>{% trans "Redirection from order page" %}</h1>
            </div>
            {% include "pretixcontrol/event/component_link.html" %}
        </div>
    </nav>
    <p>
        {% blocktrans trimmed %}
            This feature is useful if you use only the payment component of eventyay but build your own checkout interface
            for other steps.
        {% endblocktrans %}
    </p>
    <p>
        <a href="https://docs.eventyay.com/en/latest/api/guides/custom_checkout.html" target="_blank" rel="noopener">
            <span class="fa fa-question-circle"></span>
            {% trans "Read our documentation for more information" %}
        </a>
    </p>
    <form action="" method="post" class="form-horizontal" enctype="multipart/form-data">
        {% csrf_token %}
        {% bootstrap_form_errors form %}
        {% bootstrap_field form.returnurl_prefix layout="horizontal" %}
        <div class="form-group submit-group">
            <button type="submit" class="btn btn-primary btn-save">
                {% trans "Save" %}
            </button>
        </div>
    </form>
{% endblock %}
